package com.galaxy.device.domain;

import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import lombok.Data;

import java.time.Instant;
import java.util.Date;

@Data
@Measurement(name = "deviceLog")
public class DeviceLog {

    @Column(tag = true)
    private String deviceNo;

    @Column
    private String type;

    @Column
    private String content;

    @Column(timestamp = true)
    private Instant timestamp; // 必须使用Instant

}
